package com.house.common.core.domain.model;


import java.math.BigDecimal;
import java.util.Arrays;

/**
 * 前端添加房屋信息的载体类
 *
 * @author tc
 */
public class HouseInfo {

    //-----------房屋发布人编号
    private Long userId;

    //-----------------房屋信息-----------------
    /**
     * 编号
     */
    private Long houseId;

    /**
     * 房屋名称
     */
    private String houseName;

    /**
     * 占地面积
     */
    private Long houseArea;

    /**
     * 朝向(从数据字典获取)
     */
    private String houseTowards;

    /**
     * 装修 0:精装修  1:毛胚
     */
    private String houseFurnished;

    /**
     * 户型
     */
    private String houseType;

    /**
     * 楼层
     */
    private Long houseFloor;

    /**
     * 是否在租 0:在租  1:闲置
     */
    private String isRental;

    /**
     * 租金/月
     */
    private BigDecimal rentalPrice;

    //-----------------租售类型-----------------
    /**
     * 付押类型
     */
    private String payType;


    /**
     * 整租合租 (1:整租  0:合租)
     */
    private String entireOrShared;

    /**
     * 合租要求,只有在合租条件下可以填写
     */
    private String shareRequest;

    /**
     * 招租人数,只有在合租条件下可以填写
     */
    private int needed;

    /**
     * 已租人数,只有在合租条件下可以填写
     */
    private int rented;

    /**
     * 起租时长要求
     */
    private String rentalRequest;


    //-----------------配套家具-----------------

    /**
     * 配套家具
     */
    private String[] supports;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public int getNeeded() {
        return needed;
    }

    public void setNeeded(int needed) {
        this.needed = needed;
    }

    public int getRented() {
        return rented;
    }

    public void setRented(int rented) {
        this.rented = rented;
    }

    public String getShareRequest() {
        return shareRequest;
    }

    public void setShareRequest(String shareRequest) {
        this.shareRequest = shareRequest;
    }

    public Long getHouseId() {
        return houseId;
    }

    public void setHouseId(Long houseId) {
        this.houseId = houseId;
    }

    public String getHouseName() {
        return houseName;
    }

    public void setHouseName(String houseName) {
        this.houseName = houseName;
    }

    public Long getHouseArea() {
        return houseArea;
    }

    public void setHouseArea(Long houseArea) {
        this.houseArea = houseArea;
    }

    public String getHouseTowards() {
        return houseTowards;
    }

    public void setHouseTowards(String houseTowards) {
        this.houseTowards = houseTowards;
    }

    public String getHouseFurnished() {
        return houseFurnished;
    }

    public void setHouseFurnished(String houseFurnished) {
        this.houseFurnished = houseFurnished;
    }

    public String getHouseType() {
        return houseType;
    }

    public void setHouseType(String houseType) {
        this.houseType = houseType;
    }

    public Long getHouseFloor() {
        return houseFloor;
    }

    public void setHouseFloor(Long houseFloor) {
        this.houseFloor = houseFloor;
    }

    public String getIsRental() {
        return isRental;
    }

    public void setIsRental(String isRental) {
        this.isRental = isRental;
    }

    public BigDecimal getRentalPrice() {
        return rentalPrice;
    }

    public void setRentalPrice(BigDecimal rentalPrice) {
        this.rentalPrice = rentalPrice;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getEntireOrShared() {
        return entireOrShared;
    }

    public void setEntireOrShared(String entireOrShared) {
        this.entireOrShared = entireOrShared;
    }

    public String getRentalRequest() {
        return rentalRequest;
    }

    public void setRentalRequest(String rentalRequest) {
        this.rentalRequest = rentalRequest;
    }

    public String[] getSupports() {
        return supports;
    }

    public void setSupports(String[] supports) {
        this.supports = supports;
    }

    @Override
    public String toString() {
        return "HouseInfo{" +
                "houseId=" + houseId +
                ", houseName='" + houseName + '\'' +
                ", houseArea=" + houseArea +
                ", houseTowards='" + houseTowards + '\'' +
                ", houseFurnished='" + houseFurnished + '\'' +
                ", houseType='" + houseType + '\'' +
                ", houseFloor=" + houseFloor +
                ", isRental='" + isRental + '\'' +
                ", rentalPrice=" + rentalPrice +
                ", payType='" + payType + '\'' +
                ", entireOrShared='" + entireOrShared + '\'' +
                ", shareRequest='" + shareRequest + '\'' +
                ", rentalRequest='" + rentalRequest + '\'' +
                ", supports=" + Arrays.toString(supports) +
                '}';
    }
}
